﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/PMAdmin.Master"
    CodeBehind="BonusRightReceivables.aspx.cs" Inherits="PM.Site.Admin.BonusRightReceivables" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <div class="form_left">
        <p style="font-size: small; font-weight: bold;">
            Client : &nbsp;<asp:DropDownList ID="ddlClientIds" runat="server" AutoPostBack="true"
                OnSelectedIndexChanged="ddlClientIds_SelectedIndexChanged">
                <asp:ListItem Text="~Select all~" Value="" Selected="True"></asp:ListItem>
            </asp:DropDownList>
        </p>
    </div>
    <br />
    <br style="clear: both;" />
    <br />
    <div class="form_left">
        <asp:Panel ID="pnlBonusIssues" runat="server" Font-Size="Medium" GroupingText="Overview Bonus Issue Receivables">
            <div style="padding: 5px;">
                <asp:DataList ID="dlBonusIssues" runat="server" Visible="true" RepeatDirection="Horizontal"
                    CellPadding="0" CellSpacing="0" Font-Size="Small" ItemStyle-BackColor="#F6F4F5"
                    ItemStyle-BorderColor="#6B6B6B" ItemStyle-BorderWidth="1px" HeaderStyle-BackColor="#444444"
                    HeaderStyle-Height="30px" RepeatColumns="1" RepeatLayout="Flow">
                    <AlternatingItemStyle BackColor="#F9F9F9" />
                    <HeaderTemplate>
                        <div style="padding-bottom: 0px; height: 30px; margin: 0px; color: White;">
                            <div style="width: 80px; float: left; text-align: center; font-weight: bold;">
                                Client Id</div>
                            <div style="width: 140px; float: left; text-align: center; font-weight: bold;">
                                Security Id</div>
                            <div style="width: 120px; float: left; text-align: center; font-weight: bold;">
                                Quantity<br />
                                <div style="font-size: smaller">
                                    (on hand)</div>
                            </div>
                            <div style="width: 120px; float: left; text-align: center; font-weight: bold; padding-left: 10px;">
                                Propotion<br />
                                <div style="font-size: smaller">
                                    (per share)</div>
                            </div>
                            <div style="width: 120px; float: left; text-align: center; font-weight: bold;">
                                Quantity<br />
                                <div style="font-size: smaller">
                                    (to receive)</div>
                            </div>
                            <div style="width: 120px; float: left; text-align: center; font-weight: bold; padding-left: 10px;">
                                Issue Price<br />
                                <div style="font-size: smaller">
                                    (per share)</div>
                            </div>
                            <div style="width: 120px; float: left; text-align: center; font-weight: bold; padding-left: 10px;">
                                Total Value of Receivables
                            </div>
                            <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                XD</div>
                            <div style="width: 102px; float: left; text-align: center; font-weight: bold;">
                                Bonus Issue Date</div>
                        </div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div style="float: none; margin-bottom: 0px; min-height: 15px; font-size: small;
                            text-align: center;">
                            <div style="width: 80px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# Eval("ClientId")%></label></div>
                            <div style="width: 140px; float: left; min-height: 12px;">
                                <label>
                                    <%# Eval("SecurityId")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 20px;">
                                <label>
                                    <%# Eval("Quantity")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 30px;">
                                <label>
                                    <%# Eval("Propotion", "{0:0.0000}")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 20px;">
                                <label>
                                    <%# Eval("QuantityReceivable")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 30px;">
                                <label>
                                    <%# Eval("ValuePerShare", "{0:0.00}")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 30px;">
                                <label>
                                    <%# Eval("Amount", "{0:0.00}")%></label></div>
                            <div style="width: 100px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# ((DateTime)Eval("XD")).ToShortDateString()%></label>
                            </div>
                            <div style="width: 100px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# ((DateTime)Eval("PaymentDate")).ToShortDateString()%></label>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            <br />
        </asp:Panel>
    </div>
    <br />
    <div class="horizontal_space_15px">
    </div>
    <div class="separator">
    </div>
    <div class="form_left">
        <asp:Panel ID="pnlRights" runat="server" Font-Size="Medium" GroupingText="Overview Rights Issue Receivables">
            <div style="padding: 5px;">
                <asp:DataList ID="dlRights" runat="server" Visible="true" RepeatDirection="Horizontal"
                    CellPadding="0" CellSpacing="0" Font-Size="Small" ItemStyle-BackColor="#F6F4F5"
                    ItemStyle-BorderColor="#6B6B6B" ItemStyle-BorderWidth="1px" HeaderStyle-BackColor="#444444"
                    HeaderStyle-Height="30px" RepeatColumns="1" RepeatLayout="Flow">
                    <AlternatingItemStyle BackColor="#F9F9F9" />
                    <HeaderTemplate>
                        <div style="padding-bottom: 0px; height: 30px; margin: 0px; color: White;">
                            <div style="width: 80px; float: left; text-align: center; font-weight: bold;">
                                Client Id</div>
                            <div style="width: 140px; float: left; text-align: center; font-weight: bold;">
                                Security Id</div>
                            <div style="width: 110px; float: left; text-align: center; font-weight: bold;">
                                Quantity<br />
                                <div style="font-size: smaller">
                                    (on hand)</div>
                            </div>
                            <div style="width: 110px; float: left; text-align: center; font-weight: bold;">
                                Propotion<br />
                                <div style="font-size: smaller">
                                    (per share)</div>
                            </div>
                            <div style="width: 110px; float: left; text-align: center; font-weight: bold;">
                                Quantity<br />
                                <div style="font-size: smaller">
                                    (be purchased)</div>
                            </div>
                            <div style="width: 110px; float: left; text-align: center; font-weight: bold; ">
                                Issue Price<br />
                                <div style="font-size: smaller">
                                    (per share)</div>
                            </div>
                            <div style="width: 110px; float: left; text-align: center; font-weight: bold; ">
                                Total Cost
                            </div>
                            <div style="width: 90px; float: left; text-align: center; font-weight: bold;">
                                XD</div>
                            <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                Commence. Date</div>
                            <div style="width: 100px; float: left; text-align: center; font-weight: bold;">
                                Renunciat. Date</div>
                            <div style="width: 102px; float: left; text-align: center; font-weight: bold;">
                                Acceptance & Payment Date</div>
                        </div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div style="float: none; margin-bottom: 0px; min-height: 15px; font-size: small;
                            text-align: center;">
                            <div style="width: 80px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# Eval("ClientId")%></label></div>
                            <div style="width: 140px; float: left; min-height: 12px;">
                                <label>
                                    <%# Eval("SecurityId")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 10px;">
                                <label>
                                    <%# Eval("Quantity")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 10px;">
                                <label>
                                    <%# Eval("Propotion", "{0:0.0000}")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 10px;">
                                <label>
                                    <%# Eval("QuantityReceivable")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 10px;">
                                <label>
                                    <%# Eval("ValuePerShare", "{0:0.00}")%></label></div>
                            <div style="width: 100px; float: left; text-align: right; min-height: 12px; padding-right: 10px;">
                                <label>
                                    <%# Eval("Amount", "{0:0.00}")%></label></div>
                            <div style="width: 90px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# ((DateTime)Eval("XD")).ToShortDateString()%></label>
                            </div>
                              <div style="width: 100px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# ((DateTime)Eval("TradeCommencementDate")).ToShortDateString()%></label>
                            </div>
                              <div style="width: 100px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# ((DateTime)Eval("RenunciationDate")).ToShortDateString()%></label>
                            </div>
                            <div style="width: 100px; float: left; text-align: center; min-height: 12px;">
                                <label>
                                    <%# ((DateTime)Eval("PaymentDate")).ToShortDateString()%></label>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            <br />
        </asp:Panel>
    </div>
</asp:Content>
